<template>
  <section class="divShell">
    <div class="div-shell-top">
      <i></i>
      <h2>{{title}}</h2>
      <div class="bg"></div>
      <div class="border"></div>
    </div>
    <div class="div-shell-content">
      <slot></slot>
    </div>
  </section>
</template>

<script>
export default {
  name: "DivShell",
  props: {
    title:{
      type: String,
      default:'人口统计'
    }
  },
  data() {
    return {
     
        
    };
  },
  mounted() {
     
  },
  methods: {
    
  },
  beforeDestroy() {
      
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
  .divShell{
    padding: 25px 25px 18px 20px;
    box-sizing: border-box;
    width: 420px;
    background: rgba(10,18,43,0.85);
    .div-shell-top{
      display: flex;
      align-items: center;
      margin-bottom: 20px;
      i{
        width: 3.4px;
        height: 16.8px;
        background-image: linear-gradient(90deg, #03DCEF 0%, #307FFF 100%);
        margin-right: 5.2px;
      }
      h2{
        font-size: 16px;
        color: #FFFFFF;
        margin-right: 15.6px;
      }
      .bg{
        width: 61px;
        height: 16px;
        background: url('../assets/img/div-shell-bg.png');
        background-size: 100% 100%;
        margin-right: 15.6px;
      }
      .border{
        flex:1;
        height: 1px;
        position: relative;
        background-color:  #979797;
        &::after{
          content: '';
          position: absolute;
          top: -2px;
          right: 0;
          width: 6px;
          height: 6px;
          border-radius: 50%;
          background-color:  #979797;
        }
      }
    }
  }
</style>
